//
//  FYTimer.h
//  GCD-TimerDeom
//
//  Created by FelixYin on 2020/4/11.
//  Copyright © 2020 FelixYin. All rights reserved.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

typedef void(^FYTimerBlock)(id obj);
@interface FYTimer : NSObject

+ (NSString *) schedule:(FYTimerBlock) block start:(NSTimeInterval) start interval:(NSTimeInterval) interval repeat:(BOOL) repeat async:(BOOL) async;

+ (void) cancleSchedule:(NSString *) timerID;

@end

NS_ASSUME_NONNULL_END
